﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Project
{
    class FirstScreen
    {
        /*
         * Loads the user name as a caption  
         */
        public static void load(Label label)
        {
            label.Text = "Welcome " + Login.username;
        }

        /*
         * Loads the settings form and shows it 
         */
        public static void loadSettings()
        {
            Settings form = new Settings();
            form.Show();
        }

        /*
         * Resets the login fields and closes the first screen
         * form.
         */
        public static void logout(Form form)
        {
            Login.username = "";
            Login.permissions = 100;
            Login.id = "";
            form.Close();
        }
    }
}
